const Mock = require('better-mock/dist/mock.mp.js')
const base = 'http://127.0.0.1:9527/api/'
Mock.mock(base + 'phone', {
    code: 0,
    'data|50': [
      {
        // 属性 player_id 是一个自增数，起始值为 1，每次增 1
        'player_id|+1': 1,
        'rank_num|+1': 1,
        avatar: '@image(200x200, @color, @color, @name)',
        nick_name: '@cword(3, 10)',
        praise_num: '@integer(0, 10000)',
        is_like: '@boolean',
      },
    ],
  })